<template>
	<view id='order-detail'>
		<u-form style="background-color: #FFFFFF;" label-position="left" class="demo-table-expand" label-width="150px">
			<u-form-item label="收件人姓名中文">{{obj.receiverName}}</u-form-item>
			<u-form-item label="收件人姓名老挝">{{obj.laosReceiverName}}</u-form-item>
			<u-form-item label="收件人电话">{{obj.receiverPhone}}</u-form-item>
			<u-form-item label="收件网点">{{obj.currentName}}</u-form-item>
			<u-form-item label="物品">{{obj.articleName}}</u-form-item>
			<u-form-item label="品牌">{{obj.goods}}</u-form-item>
			<u-form-item label="件数">{{obj.insideCount}}</u-form-item>
			<u-form-item label="规格型号">{{obj.specification}}</u-form-item>
			<u-form-item label="重量kg">{{obj.weight}}</u-form-item>
			<u-form-item label="第三方快递单号">{{obj.number}}</u-form-item>
			<u-form-item label="备注">{{obj.detailNotes}}</u-form-item>
		</u-form>
	</view>
</template>

<script>
	export default {
		name: 'DetailMail',
		data() {
			return {
				obj: {}
			}
		},
		onLoad(e) {
			this.getData(e.number)
		},
		methods: {
			getData(number) {
				if (!number) return
				let param = {
					current: 1,
					size: 1,
					state: 0,
					type: 2,
					number: number
				}
				uni.showLoading()
				this.$api.pageCourierMailApi(param).then(result => {
					uni.hideLoading()
					this.obj = result.resultParam.mailPage.records[0]
				}).catch(() => {
					uni.hideLoading()
				})
			}
		}
	}
</script>

<style lang="scss">
	#order-detail {
		padding: 10rpx;

		.u-form-item {
			padding: 0;
			border-bottom: 1rpx solid gray;
		}
	}
</style>
